{extend name="public/base" /}
{block name="title"}配置管理{/block} {block name="main"}
    <blockquote class="layui-elem-quote quoteBox" >
        <form class="layui-form" action="" method="GET">
            <div class="layui-inline">
                <label class="layui-form-label">关键字</label>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="keyword" value="{$keyword}" class="layui-input searchVal" placeholder="请输入搜索的内容" />
                    </div>
                </div>
            </div>
            <button class="layui-btn search_btn" id="savebtn" lay-submit="">搜索</button>
            <div class="layui-inline">
                <a href="/sys/config/add" class="layui-btn layui-btn-normal addNews_btn">新增配置</a>
            </div>
        </form>
    </blockquote>
    <form class="layui-form">
        <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;" class="layui-table">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>配置名称</th>
                    <th>配置标识</th>
                    <th>配置类型</th>
                    <th>修改时间</th>
                    <th class="layui-table-fixed layui-table-fixed-r">操作</th>
                </tr>
            </thead>
            <tbody>
                {if condition="$data['msg']"}
                    <tr class="td_center"><td colspan="10">{$data['msg']}</td></tr>
                {/if}
                {volist name="data['list']" id="item"}
                <tr class="nodelist depth01">
                    <td class="td_left">
                        <div class="layui-table-cell ">{$item['id']}</div>
                    </td>
                    <td class="td_left">
                        <div class="layui-table-cell ">{$item['name']}</div>
                    </td>
                    <td class="td_left">
                        <div class="layui-table-cell ">{$item['tag']}</div>
                    </td>
                    <td class="td_left">
                        <div class="layui-table-cell ">
                            {$item['type'] == 1 ? '公共配置':''}
                            {$item['type'] == 2 ? '平台专属配置':''}
                            {$item['type'] == 3 ? '站点专属配置':''}
                        </div>
                    </td>
                    <td class="td_left">
                        <div class="layui-table-cell ">{$item['edittime']?date("Y-m-d H:i:s",$item['edittime']):''}</div>
                    </td>
                    <td class="td_center">
                        <a href="/sys/config/edit/id/{$item['id']}" class="editNode layui-btn layui-btn-xs">编辑</a>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>
    </form>
{$showpage|raw} 

{/block} {block name="script"}
<script>
    layui.use(['form'], function (form) {
        
    });
</script> {/block}